// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Components/BoxComponent.h"
#include "MyPawn.generated.h"

UCLASS()
class CLASS11_API AMyPawn : public APawn
{
	GENERATED_BODY()

public:
	AMyPawn();

	UPROPERTY(VisibleAnywhere)
	UBoxComponent* _box;
	
	void OnHome();
	void OnMoveLeft(float v);
	void OnMoveRight(float v);
	void OnMoveDown(float v);
	void OnMoveUp(float v);
	void OnMouseMove(FVector v);

protected:
	virtual void BeginPlay() override;

public:
	virtual void Tick(float DeltaTime) override;

	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

};
